package com.dyna.domain.entity;

import com.dyna.constants.DateFatter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("福袋盒子")
public class LuckyBagEvent {

    @ApiModelProperty("福袋发布id")
    private Long eventId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("福袋分类")
    private Integer category;

    @ApiModelProperty("封面图URL")
    private List<String> coverUrl;

    @ApiModelProperty("单抽价格")
    private BigDecimal price;

    @ApiModelProperty("总库存")
    private Long totalStock;

    @ApiModelProperty("剩余库存")
    private Long remainingStock;

    @ApiModelProperty(value = "福袋类型", notes = "1：售后立开 ，2：售完全开")
    private Integer type;

    @ApiModelProperty(value = "状态", notes = "1:审核中，2:审核通过")
    private Integer status;

    @ApiModelProperty("概率配置")
    private String probabilityConfig;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime endTime;

}
